<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="./js/wxLogin.js"></script>
  <title>Document</title>
</head>
<body>
  <div>
    <div id="weixin"></div>
    <script>
      var wx = new WxLogin({
        id: 'weixin',
        appid: "wx7287a60bb700fd21",
        scope: 'snsapi_login',
        redirect_uri: window.decodeURI("http://www.txjava.cn/loginServlet")
      })
    </script>
  </div>
</body>
</html>